package edu.calvin.djs32.cs214.interpreters.calculator.primitives;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import edu.calvin.cs214.hobbes2008.IntegerTIR;


public class SqrtPrimitiveTest {
	@Test
	public void shouldApplySqrt() {
		  assertEquals(new IntegerTIR(3), new SqrtPrimitive().apply(new IntegerTIR(9)));
		  assertEquals(new IntegerTIR(7), new SqrtPrimitive().apply(new IntegerTIR(49)));
		  assertEquals(new IntegerTIR(10), new SqrtPrimitive().apply(new IntegerTIR(100)));
		}

}
